{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Folder & File Automation\n",
    "\n",
    "In this example we will create, delet and move files and folders on Windows"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Initializing Automagica\n",
    "\n",
    "The first step in building a script with Automagica is to import all the Automagica activities."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "from automagica import *"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Creating some files\n",
    "\n",
    "Let's start by creating some textfiles on in the home directory."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Make textfile 1\n",
    "textfile_1 = make_textfile(output_path=home_path('textfile1.txt'))\n",
    "\n",
    "# Make textfile 2\n",
    "textfile_2 = make_textfile(output_path=home_path('textfile2.txt'))\n",
    "\n",
    "# Make textfile 3\n",
    "textfile_3 = make_textfile(output_path=home_path('textfile3.txt'))"
   ]
  },
  {
   "attachments": {
    "filesandfolder1.png": {
     "image/png": "iVBORw0KGgoAAAANSUhEUgAAAVYAAACICAIAAAAzjlQ/AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA+6SURBVHhe7Z3PcxNHFselHKhKsYYDxsRbCyQps4dUbvw2lb3DKf/B3pwj+QP2mNteyDG57X+Qk/kLktsCMuBUBaqoYou1wCTZ4IAxMWhf/5rpnumRZqSe9rTe95OW1P26p7vfl+HpzUgi/dFo1AMAcOU9/QoAYAlCAACsQQgAgDUIAQCwBiEAANYgBADAGoQAAFiDEAAAaxACAGANQgAArEEIAIA1CAEAsAYhAADWIAQAwJowPxZ++fLlo0eP3n///Xwu37TG5r4QokaPvnzNzb0+PWiD4kW2ipsdWXMQ/3n8+OzZs8eOHdPtuQM6x4GVzsFCwN6bNwsLC+ScfzqfteCwRMiiqwrLIJWT++1rEYWcukr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15VOq/89VP5GgkdCgJBYU+joph8nzZt0dDBSoctESY14s1cI8dkgc2KcM5sGTSgHDINazfGLuoelw4HoTNBY2yLPS10Lrg8g840xDHY04bXudULAau+viZrZKFtqmdFxfi8Xq6IajZO2suuF6Yas2iiFBwsKDPeZW+9XBHVbBxhH2YoTAWdK8bn9XJFVFVNx4RsspzCVCF1bvNC4OFP93o/fHlG3t+49u0Pmw8o1flmvXetf623/o1OLevjma0mMyyaBDF0FneqvvrkwffXV2TTC3Rugk9neWU7Gn3+3dgbr4F1bvtegBXQAmw47GzzRKs609//v/f+NRr7958JUc5n+ju+1uQ9bjbaDAHirsa3XznR7OYXFLxGFMSaf+rhma2M9xOXGRZNgrZ1vvnPLz/9h/vXHzorwup800xy87tv1X3EKDrrIBQOui4RqACX3/AgS34nw7qRYo+3L2myumV0ZssCKA3IGvlgqslhExdNFceFNnW2W4QclA8200Lnssu5SlbdMro6200jWD7YTBteZ/yrQQCwpmvfCwAARAUhAADWIAQAwBqEAABYgxAAAGsQAgBgDUIAAKxBCACANQgBALAGIQAA1iAEAMAahAAAWIMQAABrEAIAYA1CAACsQQgAgDUIAQCwBiEAAMb0ev8HfYd27Gh73nEAAAAASUVORK5CYII="
    }
   },
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "This should create 3 files in your home directory\n",
    "\n",
    "![filesandfolder1.png](attachment:filesandfolder1.png)\n",
    "\n",
    "We can use Automagica to open the home directory and have a look"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'C:\\\\Users\\\\TvT'"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "open_file(home_path())"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Creating a folder\n",
    "\n",
    "We can create a folder in the home directory to move the textfiles to."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "folder_1 = create_folder(path=home_path('nice_folder'))"
   ]
  },
  {
   "attachments": {
    "filesandfolder2.png": {
     "image/png": "iVBORw0KGgoAAAANSUhEUgAAAGcAAACBCAIAAABSPjMxAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAyPSURBVHhe7Zw9jF1HFcfnvv3+sk3i9UcsCBA7kSwrBQEi1lAj2xIYJAxSJOh2y7ihS5mOxi69XQoaV1BgFzQRItvSWAbZhoIOQYhBa8fr3X0352vOnJn7dr3v7syLn3R/vnfmnP+Ze33n77mzb+1kq7quXceQ9KTvGIbOtTZ0rrWhc60NnWtt6FxrQ+daG3J8Xus/3/rPn/vbTzGu4FfoMIDTxNj53IQ0nmJ/pSlJw4FejANlsFYl7VXTr7nZr3sxPzlc231Sf/r7zX/f3/n8U8hkXn5SlPpEqjwAIs4wQA0CamkATF1iVvGSHo3kgy6WFF8YOHEMaRQvv1fNnMGrCpDnDYVnXTpxYebo63VV1Y7+HPjPAlo8QKNU0AQLlNgyx+Ym2FGEGktSEDDTEkDxzn8lK0C+fa3enj/2+uLy21VvChJ6cDbFTybMGdAAdUr8WEy4SjkXI0JVLzA0x+cnm2t1ve3qnem5o0unvt2bnBeVCHPDXmflRdT8PrGnD6SGEnUSA1TCkwOOC5JvrcGT9p9BMzE5eeT0d6bmlnkWBO44MCE6IAoFCjjWDVZSaqFjIxWIbQokKQgNJTc5XVOqqr944sLssbNoF87aTlzNac6t7ktP43Ug/ZJQGixTRe/CY1gvThHXkHp79uiZheVvuWpCJiPTYSMJdoci7tAFDmMdOz8EiWO9iweERMlMMdeAendqdnHx9Pd6U4s0CW50PhoFxXRkBUYsSuJbIFEoxZBTQIP8lHQN6U9MuMXT707OnfSTUDswxgRjnSHVki2OMJdRa0fwPUZIadeQqt5aOH5+5thbMDc/Y56ofJVATVqPGFc72OrC8oxHaRwG8M3gtOPyMwrXkPr57NLp+eV3XG/KTwhm2JytQau+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Vb8jYJG04e5/YEa81uAzyJ0L8sLw5nzp1sMbziuDdngLDr53mUbibpWsnEu37qyuU/VX7pq8ocPd/6B0f7/WhpdhX7PAxwJLprWRm26tteFlW2vjQedaGzrX2tC51obOtTZ0rrWhc60NnWtt6FxrQ+daGzrX2tC51obOtTZ0rrWhc60NnWtt6FxrQ+daGzrX2tC5NjzOfQF+xBddqORNjgAAAABJRU5ErkJggg=="
    }
   },
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "You can verify in your home directory that a new folder with the correct name was created\n",
    "\n",
    "![filesandfolder2.png](attachment:filesandfolder2.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Moving the files\n",
    "\n",
    "We can now move the textfiles to the folder "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'C:\\\\Users\\\\TvT\\\\nice_folder_fadb'"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Move textfile 1\n",
    "move_file(textfile_1, folder_1)\n",
    "\n",
    "# Move textfile 2\n",
    "move_file(textfile_2, folder_1)\n",
    "\n",
    "# Move textfile 3\n",
    "move_file(textfile_3, folder_1)"
   ]
  },
  {
   "attachments": {
    "filesandfolder3.png": {
     "image/png": "iVBORw0KGgoAAAANSUhEUgAAAGUAAACBCAIAAABWy+MMAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABfVSURBVHhe7ZxJjBzXece7et+3WXo2ckiKkiJKluwYTmIJ8ckXSQYiIIGM5JAgF/JoXXLz0bdcpKN481WXxAYiHYIkPsRCEMRRgMjaSHGROEtv0/u+VH5vqe7qmR5qerqLIoP+s6b6ve+9Wt5/vrW6OIZpmq4lzgy3/lzibFjyNRuWfM2GJV+zYcnXbFjyNRuWfM2GJV+zYcnXbFjyNRuWfM2GJV+z4Vz19rDbKfz7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238nmHC9+sZ118df2Jd0+5/e+/D6z+2O6PYXH0v1EXjt5oefPPRP+YrJ19+Q58Yn/vz65HRGrSuLQSk75fwvv/n6Ypzht+K/hDfXkCq3aDh4fof5uvr6my/fnDC6q8+84JqUPARy8j9aXu8XNy1dU2DUsn8xKGWznX92OK1fZBbvv6DNQ7nfV9+99bbLkkzz4XaIyR+/JmcKr3RMW1599/3rN+Xo37je1PY42/lnxvL5xGz4VvyXHQR7OxatD4vGUr9mw7euX08YlnzNhiVfs2HJ12xY8jUblnzNhiVfs2HJ12xY8jUblnzNhiVfs2HJ12xY8jUblnzNhiVfs8Dl+j/4uOHsqOaRBgAAAABJRU5ErkJggg=="
    }
   },
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The new folder now contains the three textfiles\n",
    "\n",
    "![filesandfolder3.png](attachment:filesandfolder3.png)\n",
    "\n",
    "Finally we can open the folder to verify all files have been moved:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'C:\\\\Users\\\\TvT\\\\nice_folder_fadb'"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Open the new folder\n",
    "open_file(folder_1)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "'Python Interactive'",
   "language": "python",
   "name": "bb341ba4-98f7-43a2-996e-ea9a75df951a"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
